$(document).ready(function(){
	$(".mydata").mouseover(function(){
		$(this).addClass("mydataing");
		$(".mydata ul").show();
	});
	$(".mydata").mouseout(function(){
		$(".mydata").removeClass("mydataing");
		$(".mydata ul").hide();
	});
var evOut='1';
var formOns;
$(".deform").hover(function(){
		$(".deform").removeClass("recform");
		$(".recomm").hide();
		if(formOns== $(this).attr("id")){
		if(evOut=='1'){
			$(this).addClass("recform");
			$("."+ $(this).attr("id")).show();
			formOns= $(this).attr("id");
			evOut='2';
		}else{
			evOut='1';
		}}
		else{
			$(this).addClass("recform");
			$("."+ $(this).attr("id")).show();
			formOns= $(this).attr("id");
			evOut='2';
		}
	});		
});
<!--头部登陆、注册后返回前一页   -->
function registerDeal(){
	/*try{
   		var oldUrl = ReplaceAll(window.location.href,"&",'$');
		//window.location.href='/member/loginReg_toRegister.do?formUrl='+encodeURIComponent(oldUrl);
	}catch(err){
   		//window.location.href='/member/loginReg_toRegister.do';
	}*/
	window.location.href='http://login.zemoitu.com/User_perfect.action';
}

function loginOut(){
	var host="http://"+window.location.host+"/logout.do";
	var oldUrl =ReplaceAll(host,"&",'$');
	window.location.href='http://sso.yofogo.com/ssoserver/logout.do?url='+encodeURIComponent(oldUrl);
	//window.location.href=host;
}
function loginDeal(){
	//try{
   		var oldUrl =ReplaceAll(window.location.href,"&",'$');
		window.location.href='http://sso.yofogo.com/ssoserver/login?service='+encodeURIComponent(oldUrl);
	//}catch(err){
   	//	window.location.href='/member/loginReg_toLogin.do';
	//}
}
function ReplaceAll(str,sptr,sptr1){
	while (str.indexOf(sptr)>= 0){
   		str = str.replace(sptr, sptr1);
	}
	return str;
}
